package com.secf.service.action.hpy.mc.scjcjd.test;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author luoYong
 * @Date 2024-08-09 17:47
 */
public class MapTest {
    public static void main(String[] args) {
        Map<String, Integer> map = new HashMap<>();
        map.put("A", 1);
        map.put("B", 2);
        map.put("C", 3);

        System.out.println("Map contains A: " + map.containsKey("A"));
        System.out.println("Value of B: " + map.get("B"));
        map.remove("C");
        System.out.println("Map after removing C: " + map);
    }
}


